<template>
  <div>
    准备进入路由模板<br/>
    准备离开路由模板
  </div>
</template>
<script>
  export default {
    components: {},
    data () {
      return {}
    },
    mounted () {

    },
    methods: {

    },
    beforeRouteEnter:(to, from, next)=>{
      console.log("准备进入路由模板");
      next();
    },
    beforeRouteUpdate:(to, from, next)=>{
      console.log('不会被触发到~')
    },
    beforeRouteLeave: (to, from, next) => {
      console.log("准备离开路由模板");
      next();
    }
  }
</script>
<style>

</style>
